<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入 lagui.css -->
    <link rel="stylesheet" href="/static/layui/css/layui.css"/>
    <!-- 引入 lagui.js -->
    <script src="/static/layui/layui.js"></script>

<tadle class="layui-hide" id="test"></tadle>

</head>
<body>
<script>
    layui.use(function (){
        let form = layui.form;
        let layer = layui.layer;
        let table = layui.table;
        table.render({
            elem: '#test'
            , url: '/index/member/getList/'
            , cellMinWidth: 80
            , cols: [[
                {field: 'circl_id', width: 80, title: 'ID', sort: true}
                , {field: 'member_id', width: 80, title: '用户ID'}
                , {field: 'member_nickname', width: 80, title: '用户昵称'}
                , {field: 'city', width: 80, title: '城市'}
                , {field: 'sign', title: '签名', width: '30%', minWidth: 100} //minWidth：局部定义当前单元格的最小宽度，layui 2.2.1 新增
                , {field: 'experience', title: '积分', sort: true}
                , {field: 'score', title: '评分', sort: true}
                , {field: 'classify', title: '职业'}
                , {field: 'wealth', width: 137, title: '财富', sort: true}
            ]]
        });
    });
</script>

</body>
</html>